package com.jgp.sys.props;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 项目   jgp-cloud-parent
 * 作者   loufei
 * 时间   2019-09-19
 */
@Component
@ConfigurationProperties("jgp.cache")
public class CachePropBean {
    
    /**
     * 是否开启缓存
     */
    private Boolean enabled = false;
    
    /**
     * 缓存key前缀
     */
    private String prefix;
    
    public Boolean getEnabled() {
        return enabled;
    }
    
    public void setEnabled(Boolean enabled) {
        this.enabled = enabled;
    }
    
    public String getPrefix() {
        return prefix;
    }
    
    public void setPrefix(String prefix) {
        this.prefix = prefix;
    }
}
